import { Http } from '@/common/api'
// 列表
export const listUrl = '/srm/rank/page'
export const apiRankPageApi = async (data) => Http.post('/srm/rank/page', data)
// 新增
export const apiRankAdd = async (parmas) => Http.post('/srm/rank/add', parmas)
// 修改
export const apiPutRankUpdate = async (parmas) => Http.put('/srm/rank/update', parmas)
// 删除
export const apiDeleteRankBathDelete = async (parmas) => Http.delete('/srm/rank/batch/delete', parmas)
// 详情
export const apiGetRankFindById = async (id) => Http.get(`/srm/rank/findById/${id}`)
// 启用
export const apiPutEnableRank = async (parmas) => Http.put('/srm/rank/batch/enable', parmas)
// 禁用
export const apiPutDisableRank = async (parmas) => Http.put('/srm/rank/batch/disable', parmas)
